﻿; 限制文本长度为Count,不够的话，补充空格
; AdjustString(String,Count) {{{2
AdjustString(String,Count=18)
{
    String := Trim(String)
    p := Count - Strlen(String)
    If p > 0
    {
        Loop,%p%
            String .= A_Space
    }
    Else
        String := SubStr(String,1,Count/2) " ... " Substr(String,-(count/2)+1)
    Return String
}
